package cn.terminus.data.customer.custombusinessinfo.dao;

import cn.terminus.common.customer.bean.custombusinessinfo.dto.*;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;

import java.util.List;

/**
 * (CustomBusinessInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:35
 */
public interface CustomBusinessInfoDao {

    /**
     * 新增
     *
     * @param dto
     * @return
     */
    Integer add(CustomBusinessInfoNewDto dto);

    /**
     * 更新
     *
     * @param dto
     * @return
     */
    Integer update(CustomBusinessInfoNewDto dto);


    /**
     * 删除
     *
     * @param dto
     * @return
     */
    Integer delete(CustomBusinessInfoDeleteDto dto);

    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<CustomBusinessInfoResultDto> query(CustomBusinessInfoQueryDto dto);

    /**
     * 分页查询
     *
     * @param dto
     * @param page
     * @return
     */
    TerminusPageAble<CustomBusinessInfoResultDto> page(CustomBusinessInfoQueryDto dto, TerminusPageInfo page);

    Long getBussinessId(Long id);
}
